package com.ruoyi.cms.domain.bo;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 友情链接业务对象 cms_link
 *
 * @author guorui
 * @date 2023-11-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class CmsLinkBo extends BaseEntity {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 站点ID
     */
//    @NotNull(message = "站点ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long siteId;

    /**
     * 站点模块ID
     */
    private Long modId;

    /**
     * 网站标题
     */
    @NotBlank(message = "网站标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 链接
     */
    @NotBlank(message = "链接不能为空", groups = { AddGroup.class, EditGroup.class })
    private String src;

    /**
     * 是否新窗口打开，1是,0否
     */
    @NotNull(message = "是否新窗口打开，1是,0否不能为空", groups = { AddGroup.class, EditGroup.class })
    private String target;

    /**
     * 状态:1可用-1禁用
     */
    @NotNull(message = "状态:1可用-1禁用不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sort;


}
